package com.credit.management.system.model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Contract {
    private Long id;

    private Long projectId;

    private Long sum;
    //@DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
    private String date;

    private Long state;

    private Long repaymentMethod;
    public Contract(Date date,Long sum,Long projectId,Long state,Long repaymentMethod){
    	
    	this.sum=sum;
    	this.projectId=projectId;
    	this.state=state;
    	this.repaymentMethod=repaymentMethod;
    }
    public Contract(){
    	
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public Long getSum() {
        return sum;
    }

    public void setSum(Long sum) {
        this.sum = sum;
    }



    public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public Long getState() {
        return state;
    }

    public void setState(Long state) {
        this.state = state;
    }

    public Long getRepaymentMethod() {
        return repaymentMethod;
    }

    public void setRepaymentMethod(Long repaymentMethod) {
        this.repaymentMethod = repaymentMethod;
    }
}